package com.golden.management.service;


import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.golden.management.domain.DataAccessDO;
import com.golden.management.domain.ResultDO;
import com.golden.management.query.DataAccessExample;



@RestController
@RequestMapping("/api")
public interface IDataAccessService {

	@PostMapping("/function")
	public ResultDO add(@RequestBody DataAccessDO domain);
	
	@DeleteMapping("/function/{id}")
	public ResultDO delete(@PathVariable(value = "id") Integer id);
	
	@PostMapping("/function")
	public ResultDO edit(@RequestBody DataAccessDO domain);
	
	@GetMapping("/dataAccess/{id}")
	public ResultDO get(@PathVariable(value = "id") Integer id);
	
	@PostMapping("/dataAcceses")
	public ResultDO query(@RequestBody DataAccessExample example);
	
}
